import cupk.Concrete.ChildrenDiscount;
import cupk.Concrete.StudentDiscount;
import cupk.Concrete.VIPDiscount;
import cupk.Discount;
import cupk.MovieTicket;

public class Main {
    public static void main(String[] args) {
        MovieTicket movieTicket = new MovieTicket();
        movieTicket.setPrice(60);
        Discount discount;
        discount = new VIPDiscount();
        movieTicket.setDiscount(discount);
        System.out.println("原始票价为：" + movieTicket.getPrice());
        System.out.println("折后票价为：" + movieTicket.getDiscount().calculate(movieTicket.getPrice()));
    }
}